package megrez.common.core.web;

import java.util.ArrayList;
import java.util.List;

import lombok.Data;

/**
 * 接口请求错误响应
 *  
 * @author Lucky Yang
 * @since 0.0.1
 */
@Data
public class ErrorResponse {
    private String error;
    private String clazz;
    private int status;
    private List<String> params = new ArrayList<>();
    
    public ErrorResponse addParam(String param) {
        params.add(param);
        return this;
    }
}
